package com.TestDemo.Test2;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: zjz
 * @Date: 2022/01/06/23:05
 * @Description:
 * @Target:
 */
public class SplitTest {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String ss = in.nextLine();
        String[] split = ss.split("\\) \\(");
//        String[] split = ss.split("\\. \\#");
//        String[] split = ss.split("\\、");
        for (String s : split) {
            System.out.println(s);
        }


        System.out.println(ss.substring(4, ss.length()));


    }
}
